Ensure file transfer layout is gone
This commit is contained in:
parent
58d78b8b78
commit
bd9417f60a
3 changed files with 12 additions and 4 deletions
|
@ -113,7 +113,7 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/file_name"
|
android:id="@+id/file_name"
|
||||||
style="@style/font11"
|
style="@style/font26"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
@ -133,7 +133,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/file_name"
|
android:layout_below="@id/file_name"
|
||||||
android:layout_centerVertical="true"/>
|
android:layout_centerVertical="true"
|
||||||
|
android:visibility="gone"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
@ -148,7 +149,8 @@
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/file_transfer_layout"
|
android:id="@+id/file_transfer_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
android:id="@+id/progress_bar"
|
android:id="@+id/progress_bar"
|
||||||
|
|
|
@ -157,4 +157,9 @@
|
||||||
<item name="android:textStyle">bold</item>
|
<item name="android:textStyle">bold</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="font26" parent="@android:style/TextAppearance.Medium">
|
||||||
|
<item name="android:textColor">@color/colorD</item>
|
||||||
|
<item name="android:textSize">12sp</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -617,6 +617,7 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
||||||
if (offset == total) {
|
if (offset == total) {
|
||||||
holder.fileTransferLayout.setVisibility(View.GONE);
|
holder.fileTransferLayout.setVisibility(View.GONE);
|
||||||
holder.fileTransferProgressBar.setVisibility(View.GONE);
|
holder.fileTransferProgressBar.setVisibility(View.GONE);
|
||||||
|
holder.fileTransferAction.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
holder.fileTransferProgressBar.setVisibility(View.VISIBLE);
|
holder.fileTransferProgressBar.setVisibility(View.VISIBLE);
|
||||||
holder.fileTransferProgressBar.setProgress(offset * 100 / total);
|
holder.fileTransferProgressBar.setProgress(offset * 100 / total);
|
||||||
|
|
Loading…
Reference in a new issue