New layouts for replies
This commit is contained in:
parent
c4b23551fb
commit
9caedd55bf
|
@ -134,8 +134,7 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
private Button toot_it;
|
||||
private AutoCompleteTextView toot_content;
|
||||
private EditText toot_cw_content;
|
||||
private TextView toot_reply_content;
|
||||
private RelativeLayout toot_reply_content_container;
|
||||
private LinearLayout toot_reply_content_container;
|
||||
private BroadcastReceiver search_validate;
|
||||
private Status tootReply = null;
|
||||
private String sharedContent, sharedSubject;
|
||||
|
@ -209,8 +208,7 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
toot_picture_container = (LinearLayout) findViewById(R.id.toot_picture_container);
|
||||
toot_content = (AutoCompleteTextView) findViewById(R.id.toot_content);
|
||||
toot_cw_content = (EditText) findViewById(R.id.toot_cw_content);
|
||||
toot_reply_content = (TextView) findViewById(R.id.toot_reply_content);
|
||||
toot_reply_content_container = (RelativeLayout) findViewById(R.id.toot_reply_content_container);
|
||||
toot_reply_content_container = (LinearLayout) findViewById(R.id.toot_reply_content_container);
|
||||
picture_scrollview = (HorizontalScrollView) findViewById(R.id.picture_scrollview);
|
||||
toot_sensitive = (CheckBox) findViewById(R.id.toot_sensitive);
|
||||
//search_small_container = (LinearLayout) findViewById(R.id.search_small_container);
|
||||
|
@ -1083,11 +1081,13 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
|
|||
String content = tootReply.getContent();
|
||||
if(tootReply.getReblog() != null)
|
||||
content = tootReply.getReblog().getContent();
|
||||
//TODO: fill the content here
|
||||
/*
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
toot_reply_content.setText(Html.fromHtml(content, Html.FROM_HTML_MODE_LEGACY));
|
||||
else
|
||||
//noinspection deprecation
|
||||
toot_reply_content.setText(Html.fromHtml(content));
|
||||
toot_reply_content.setText(Html.fromHtml(content));*/
|
||||
switch (tootReply.getVisibility()){
|
||||
case "public":
|
||||
visibility = "public";
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 741 B |
Binary file not shown.
After Width: | Height: | Size: 383 B |
Binary file not shown.
After Width: | Height: | Size: 491 B |
Binary file not shown.
After Width: | Height: | Size: 811 B |
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
|
@ -40,41 +40,29 @@
|
|||
android:hint="@string/toot_cw_placeholder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<RelativeLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/toot_reply_content_container"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/toot_reply_content_title"
|
||||
android:text="@string/toot_reply_content_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:layout_below="@+id/toot_reply_content_title"
|
||||
android:id="@+id/toot_reply_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="top|start"
|
||||
android:textStyle="italic"
|
||||
android:autoLink="web"
|
||||
android:textSize="12sp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:layout_marginRight="40dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_height="wrap_content" />
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/toot_close_reply"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="30dp"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
app:fabSize="mini"
|
||||
android:layout_margin="5dp"
|
||||
app:srcCompat="@drawable/ic_close" />
|
||||
</RelativeLayout>
|
||||
app:srcCompat="@drawable/ic_action_eye_open" />
|
||||
</LinearLayout>
|
||||
<AutoCompleteTextView
|
||||
android:layout_marginTop="10dp"
|
||||
android:id="@+id/toot_content"
|
||||
|
|
|
@ -40,41 +40,29 @@
|
|||
android:hint="@string/toot_cw_placeholder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<RelativeLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/toot_reply_content_container"
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/toot_reply_content_title"
|
||||
android:text="@string/toot_reply_content_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:layout_below="@+id/toot_reply_content_title"
|
||||
android:id="@+id/toot_reply_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="top|start"
|
||||
android:textStyle="italic"
|
||||
android:autoLink="web"
|
||||
android:textSize="12sp"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:layout_marginRight="40dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_height="wrap_content" />
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/toot_close_reply"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
app:fabSize="mini"
|
||||
android:layout_margin="5dp"
|
||||
app:srcCompat="@drawable/ic_close" />
|
||||
</RelativeLayout>
|
||||
app:srcCompat="@drawable/ic_action_eye_open" />
|
||||
</LinearLayout>
|
||||
<AutoCompleteTextView
|
||||
android:layout_marginTop="10dp"
|
||||
android:id="@+id/toot_content"
|
||||
|
|
Loading…
Reference in New Issue