Commit 78898da8 authored by Luboš Horáček's avatar Luboš Horáček

#331 Opravy chyb z HTC Desire 310 mdpi a hdpi zařizeni s malým displejem

parent 01ffedf0
......@@ -34,7 +34,7 @@
<cz.nic.tablexia.widget.RatioPositionTextView
android:id="@+id/newuseranim_bubble_beard"
android:layout_width="@dimen/newuseranim_newspaper_topicbubble_width"
android:layout_height="@dimen/newuseranim_newspaper_topicbubble_height"
android:layout_height="wrap_content"
android:background="@drawable/newuser_helpbubble_straight"
android:gravity="center"
android:minEms="2"
......@@ -49,7 +49,7 @@
<cz.nic.tablexia.widget.RatioPositionTextView
android:id="@+id/newuseranim_bubble_balloon"
android:layout_width="@dimen/newuseranim_newspaper_topicbubble_width"
android:layout_height="@dimen/newuseranim_newspaper_topicbubble_height"
android:layout_height="wrap_content"
android:background="@drawable/newuser_helpbubble_left"
android:gravity="center"
android:minEms="2"
......@@ -64,7 +64,7 @@
<cz.nic.tablexia.widget.RatioPositionTextView
android:id="@+id/newuseranim_bubble_motocycle"
android:layout_width="@dimen/newuseranim_newspaper_topicbubble_width"
android:layout_height="@dimen/newuseranim_newspaper_topicbubble_height"
android:layout_height="wrap_content"
android:background="@drawable/newuser_helpbubble_straight"
android:gravity="center"
android:minEms="2"
......@@ -79,7 +79,7 @@
<cz.nic.tablexia.widget.RatioPositionTextView
android:id="@+id/newuseranim_bubble_swimsuit"
android:layout_width="@dimen/newuseranim_newspaper_topicbubble_width"
android:layout_height="@dimen/newuseranim_newspaper_topicbubble_height"
android:layout_height="wrap_content"
android:background="@drawable/newuser_helpbubble_left"
android:gravity="center"
android:minEms="2"
......@@ -94,7 +94,7 @@
<cz.nic.tablexia.widget.RatioPositionTextView
android:id="@+id/newuseranim_bubble_detective"
android:layout_width="@dimen/newuseranim_newspaper_topicbubble_width"
android:layout_height="@dimen/newuseranim_newspaper_topicbubble_height"
android:layout_height="wrap_content"
android:background="@drawable/newuseranim_detectiveoffice_bubble"
android:gravity="center"
android:minEms="2"
......
......@@ -241,23 +241,19 @@
</LinearLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="4"
android:gravity="center_vertical"
android:orientation="horizontal"
android:translationX="-20dp"
android:translationY="-15dp"
android:weightSum="2" >
android:gravity="center" >
<TextView
android:id="@+id/newuser_button_subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/button_blank_green"
android:gravity="center"
android:text="@string/subscriptiondialog_sign"
android:textAlignment="center"
android:textColor="@color/black"
android:textStyle="bold" />
......
......@@ -16,34 +16,32 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tablexiadialog_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/newuser_signature_background"
android:gravity="center" >
<cz.nic.tablexia.newusers.fragment.newuser.SignatureView
android:id="@+id/newuser_signature"
android:layout_width="@dimen/newuser_signature_width"
android:layout_height="@dimen/newuser_signature_height"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:layout_margin="20dp"
android:background="@drawable/newuser_signature_background" />
android:layout_margin="20dp" />
<TextView
android:id="@+id/newuser_signature_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/newuser_signature"
android:layout_centerHorizontal="true"
android:layout_gravity="top|center"
android:text="@string/newuser_signature"
android:textSize="30dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/newuser_signature"
android:layout_centerHorizontal="true"
android:layout_gravity="bottom|center"
android:orientation="horizontal"
android:paddingBottom="@dimen/tablexiadialog_paddinbottom" >
......@@ -51,12 +49,8 @@
android:id="@+id/tablexiadialog_button_negative"
android:layout_width="@dimen/tablexiadialog_button_width"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:background="@drawable/button_negativeaction"
android:gravity="center"
android:scaleType="fitCenter"
android:scaleX="@dimen/tablexiadialog_button_scale"
android:scaleY="@dimen/tablexiadialog_button_scale"
android:text=""
android:textColor="@color/black"
android:textSize="@dimen/tablexiadialog_button_textsize"
......@@ -68,12 +62,8 @@
android:layout_width="@dimen/tablexiadialog_button_width"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/tablexiadialog_button_space"
android:adjustViewBounds="true"
android:background="@drawable/button_positiveaction"
android:gravity="center"
android:scaleType="fitCenter"
android:scaleX="@dimen/tablexiadialog_button_scale"
android:scaleY="@dimen/tablexiadialog_button_scale"
android:text=""
android:textColor="@color/black"
android:textSize="@dimen/tablexiadialog_button_textsize"
......@@ -81,4 +71,4 @@
android:translationY="@dimen/tablexiadialog_button_translationY" />
</LinearLayout>
</RelativeLayout>
\ No newline at end of file
</FrameLayout>
\ No newline at end of file
......@@ -29,13 +29,13 @@
<cz.nic.tablexia.widget.RatioPositionTextView
android:id="@+id/newuseranim_bubble_conversation"
android:layout_width="@dimen/newuseranim_detectiveoffice_bubble_width"
android:layout_height="@dimen/newuseranim_detectiveoffice_bubble_height"
android:layout_height="wrap_content"
android:background="@drawable/newuseranim_detectiveoffice_bubble"
android:gravity="center"
android:minEms="2"
android:text="@string/newuseranim_dialog_1"
android:textColor="@android:color/black"
android:textSize="@dimen/newuseranim_detectivedialog_bubble_fontsize"
android:textSize="@dimen/newuseranim_newspaper_topic_fontsize"
custom:displayRatioType="height"
custom:xPositionRatio="0.099"
custom:yPositionRatio="0.17" />
......
......@@ -29,25 +29,23 @@
android:id="@+id/tablexiadialog_button_negative"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:gravity="center"
android:scaleType="fitCenter"
android:text=""
android:textColor="@color/black"
android:textStyle="bold"
android:textSize="@dimen/tablexiadialog_button_textsize"/>
android:textSize="@dimen/tablexiadialog_button_textsize"
android:textStyle="bold" />
<TextView
android:id="@+id/tablexiadialog_button_positive"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/tablexiadialog_button_space"
android:adjustViewBounds="true"
android:gravity="center"
android:scaleType="fitCenter"
android:text=""
android:textColor="@color/black"
android:textStyle="bold"
android:textSize="@dimen/tablexiadialog_button_textsize" />
android:textSize="@dimen/tablexiadialog_button_textsize"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
......@@ -24,6 +24,7 @@
android:layout_gravity="bottom|center_horizontal"
android:background="@drawable/button_positiveaction"
android:gravity="center"
android:minWidth="@dimen/tablexiadialog_button_width"
android:orientation="horizontal"
android:paddingBottom="@dimen/tablexiadialog_paddinbottom"
android:paddingTop="@dimen/tablexiadialog_button_space"
......
......@@ -21,15 +21,17 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:orientation="horizontal"
android:paddingTop="@dimen/tablexiadialog_button_space"
android:paddingLeft="20dp">
android:paddingLeft="20dp"
android:paddingRight="0dp"
android:paddingTop="@dimen/tablexiadialog_button_space" >
<TextView
android:id="@+id/tablexiadialog_button_negative"
android:layout_width="@dimen/tablexiadialog_button_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/button_negativeaction"
android:gravity="center"
android:minWidth="@dimen/tablexiadialog_button_width"
android:text=""
android:textColor="@color/black"
android:textSize="@dimen/tablexiadialog_button_textsize"
......@@ -37,10 +39,11 @@
<TextView
android:id="@+id/tablexiadialog_button_positive"
android:layout_width="@dimen/tablexiadialog_button_width"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/button_positiveaction"
android:gravity="center"
android:minWidth="@dimen/tablexiadialog_button_width"
android:text=""
android:textColor="@color/black"
android:textSize="@dimen/tablexiadialog_button_textsize"
......
......@@ -92,7 +92,7 @@ import cz.nic.tablexia.widget.TablexiaButtonViewDialog;
*/
public class NewUserFormFragment extends RoboFragment implements OnClickListener, OnDropListener {
private static final String TAG = NewUserFormFragment.class.getSimpleName();
private static final String TAG = NewUserFormFragment.class.getSimpleName();
private static final String MUGSHOT_FILE_NAME = "mugshot";
private static final String MUGSHOT_FILE_EXTENSION = ".png";
private static final int FIRST_AVAILABLE_PHOTO_INDEX = 10;
......@@ -173,7 +173,7 @@ public class NewUserFormFragment extends RoboFragment implements OnClickListener
@Override
public void onFocusChange(View v, boolean hasFocus) {
//txvHelpCovername.setVisibility(View.GONE);
// txvHelpCovername.setVisibility(View.GONE);
}
});
......@@ -182,12 +182,10 @@ public class NewUserFormFragment extends RoboFragment implements OnClickListener
coverNameET.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
public void onTextChanged(CharSequence s, int start, int before, int count) {}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
@Override
public void afterTextChanged(Editable s) {
......@@ -657,7 +655,7 @@ public class NewUserFormFragment extends RoboFragment implements OnClickListener
@Override
protected int getBackgroundResource() {
return R.color.transparent;
return R.drawable.newuser_signature_background;
}
@Override
......@@ -1012,4 +1010,4 @@ public class NewUserFormFragment extends RoboFragment implements OnClickListener
shakePen();
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment