Giter Club home page Giter Club logo

Comments (5)

Redth avatar Redth commented on May 17, 2024

I'm guessing this will happen if you code the same thing in java too....

from androidsupportcomponents.

mathiasschuetz avatar mathiasschuetz commented on May 17, 2024

Before I updated from 24.2.1 to this version I didn't have that problem.

That's the reason I thought it was a bug

from androidsupportcomponents.

Redth avatar Redth commented on May 17, 2024

It's quite possibly a bug in the support libraries themselves :) this sort of behaviour is most often not a bug in the binding layer.

Can you reproduce the same effect in a java app? or share the C# code you're using so I can try?

from androidsupportcomponents.

mathiasschuetz avatar mathiasschuetz commented on May 17, 2024

#############
C#

var builder = new AlertDialog.Builder(this._activity);
var view = this._activity.LayoutInflater.Inflate(Resource.Layout.TicketFilterDialog, null);
builder.SetView(view);

builder.SetTitle("Filter");
builder.SetPositiveButton("Suchen", (sender, args) =>
{
	//unimportant
});
builder.SetNeutralButton("Zurücksetzen", (sender, args) =>
{
	//unimportant
});

this.FilterDialog = builder.Show();

#############
Layout xml

<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
  <LinearLayout android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:paddingLeft="19dp"
                android:paddingRight="19dp"
                android:focusableInTouchMode="true">

    <Space android:layout_width="250dp"
           android:layout_height="10dp" />
    <CheckBox android:id="@+id/OwnTickets"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Nur Eigene" />
    <CheckBox android:id="@+id/HasCalulableTimes"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Enthält berechenbare Zeiten" />
    <CheckBox android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/ShowClosedTickets"
              android:text="Auch abgeschlossene anzeigen" />
    <EditText android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/TicketNumber"
              android:inputType="number"
              android:singleLine="true"
              android:textSize="16sp"
              android:hint="Ticketnummer" />
    <EditText android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/SearchText"
              android:singleLine="true"
              android:textSize="16sp"
              android:hint="Suchtext" />

    <TextView android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="16dp"
              android:paddingLeft="3dp"
              android:text="Bearbeiter" />
    <CheckBox android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/ShowOwnEditorTickets"
              android:text="Ich als Bearbeiter" />
    <android.support.v7.widget.AppCompatButton android:layout_width="match_parent"
                                               android:layout_height="wrap_content"
                                               android:gravity="left"
                                               android:textSize="12dp"
                                               android:text="Bearbeiter auswählen"
                                               android:id="@+id/Employee"
                                               style="?android:attr/borderlessButtonStyle" />

    <!--<TextView android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:paddingLeft="3dp"
              android:text="Verantwortlicher" />
    <android.support.v7.widget.AppCompatButton android:layout_width="match_parent"
                                               android:layout_height="wrap_content"
                                               android:gravity="left"
                                               android:textSize="12dp"
                                               android:text="Verantwortlichen auswählen"
                                               android:id="@+id/ResponsiblePerson"
                                               style="?android:attr/borderlessButtonStyle" />-->

    <TextView android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:paddingLeft="3dp"
              android:text="Status" />
    <android.support.v7.widget.AppCompatButton android:layout_width="match_parent"
                                               android:layout_height="wrap_content"
                                               android:gravity="left"
                                               android:textSize="12dp"
                                               android:text="Bearbeiter auswählen"
                                               android:id="@+id/TicketStates"
                                               style="?android:attr/borderlessButtonStyle" />

    <TextView android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:paddingLeft="3dp"
              android:text="Kategorien" />
    <Spinner android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:id="@+id/MainCategory" />
    <Spinner android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:id="@+id/SecondCategory" />
    <Spinner android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:paddingBottom="8dp"
             android:id="@+id/ThirdCategory" />

    <TextView android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:paddingLeft="3dp"
              android:text="Sortieren nach" />
    <RadioGroup android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
      <RadioButton android:id="@+id/SortCreated"
                   android:layout_width="match_parent"
                   android:layout_height="wrap_content"
                   android:text="Erfasst am" />
      <RadioButton android:id="@+id/SortDue"
                   android:layout_width="match_parent"
                   android:layout_height="wrap_content"
                   android:text="Fälligkeit" />
      <RadioButton android:id="@+id/SortCustomer"
                   android:layout_width="match_parent"
                   android:layout_height="wrap_content"
                   android:text="Kunde" />
    </RadioGroup>

    <CheckBox android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/Descending"
              android:text="Absteigend sortieren" />
  </LinearLayout>
</ScrollView>

###########

Excuse me for the time you had to wait

from androidsupportcomponents.

Redth avatar Redth commented on May 17, 2024

image

Seems fixed with the latest support lib versions.

from androidsupportcomponents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.