2

Eylem Düğmesi yanlış pozisyon Yüzer, ama benim FloatingActionButton için aynı yapmaz. İşte Eğer <code>Button</code>, <code>ProgressBar</code> ve <code>EditText</code> bileşenlerin <code>TableLayout</code> değişiklikler genişliğini görebileceğiniz gibi TableLayout

  1. i xml olarak get

istiyorum benim problem

  • sonucu açıklayan bir fotoğraftır:

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
        xmlns:tools="http://schemas.android.com/tools" 
        android:layout_width="match_parent" 
        android:layout_height="match_parent" 
        android:paddingBottom="@dimen/activity_vertical_margin" 
        android:paddingLeft="@dimen/activity_horizontal_margin" 
        android:paddingRight="@dimen/activity_horizontal_margin" 
        android:paddingTop="@dimen/activity_vertical_margin" 
    
        xmlns:app="http://schemas.android.com/apk/res-auto" > 
    
        <TableLayout 
         android:layout_width="wrap_content" 
         android:layout_height="wrap_content" 
    
         android:stretchColumns="*" > 
    
         <TableRow 
          android:id="@+id/tableRow1" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content" > 
    
          <android.support.design.widget.FloatingActionButton 
           android:id="@+id/FloatingActionButton04" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
    
           android:src="@drawable/ic_launcher" 
           app:elevation="4dp" 
           app1:fabSize="mini" /> 
    
          <android.support.design.widget.FloatingActionButton 
           android:id="@+id/FloatingActionButton03" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:src="@drawable/ic_launcher" 
           app:elevation="4dp" /> 
    
          <android.support.design.widget.FloatingActionButton 
           android:id="@+id/FloatingActionButton02" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:src="@drawable/ic_launcher" 
           app:elevation="4dp" /> 
    
          <android.support.design.widget.FloatingActionButton 
           android:id="@+id/FloatingActionButton01" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:src="@drawable/ic_launcher" 
           app:elevation="4dp" /> 
    
          <android.support.design.widget.FloatingActionButton 
           android:id="@+id/myFAB" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:src="@drawable/ic_launcher" 
           app:elevation="4dp" /> 
    
         </TableRow> 
    
         <TableRow 
          android:id="@+id/tableRow2" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content" > 
    
          <Button 
           android:id="@+id/Button04" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:text="Button" /> 
    
          <Button 
           android:id="@+id/Button03" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:text="Button" /> 
    
          <Button 
           android:id="@+id/Button02" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:text="Button" /> 
    
          <Button 
           android:id="@+id/Button01" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:text="Button" /> 
    
          <Button 
           android:id="@+id/button1" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:text="Button" /> 
    
         </TableRow> 
    
         <TableRow 
          android:id="@+id/tableRow3" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content" > 
    
          <ProgressBar 
           android:id="@+id/progressBar1" 
           style="?android:attr/progressBarStyleHorizontal" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:progress="60" /> 
    
         </TableRow> 
    
         <TableRow 
          android:id="@+id/tableRow4" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content" > 
    
          <EditText 
           android:id="@+id/editText1" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:ems="10" 
           android:text="Width OK" > 
    
           <requestFocus /> 
          </EditText> 
    
         </TableRow> 
        </TableLayout> 
    
    </RelativeLayout> 
    
  • cevap

    1

    Eylem Düğmesi

    Yüzer Hakkında

    Tanıtılan eylem için yüzen bir eylem düğmesi kullanılır. En yaygın eylemi temsil etmek için ekran başına yalnızca bir yüzer eylem düğmesi önerilir. Bu nedenle, bir ham maddede pek çok işlem düğmesi kullanmayın. Bunun yerine normal düğmeleri kullan

    İlgili konular