mirror of
https://github.com/nuclearfog/Shitter.git
synced 2024-12-28 02:20:46 +01:00
v 1.7.15 bug fix, layout fix, gradle update
This commit is contained in:
parent
65425e9cea
commit
be1a147a3d
6
.idea/compiler.xml
Normal file
6
.idea/compiler.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CompilerConfiguration">
|
||||||
|
<bytecodeTargetLevel target="11" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -5,8 +5,9 @@
|
|||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="testRunner" value="PLATFORM" />
|
<option name="testRunner" value="PLATFORM" />
|
||||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
<option name="distributionType" value="LOCAL" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
|
<option name="gradleHome" value="/opt/Gradle/gradle-6.6.1" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
@ -14,6 +15,7 @@
|
|||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
|
<option name="useQualifiedModuleNames" value="true" />
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
<option name="myName" value="Project Default" />
|
<option name="myName" value="Project Default" />
|
||||||
<inspection_tool class="AndroidLintClickableViewAccessibility" enabled="false" level="WARNING" enabled_by_default="false" />
|
<inspection_tool class="AndroidLintClickableViewAccessibility" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
<inspection_tool class="BooleanMethodIsAlwaysInverted" enabled="false" level="WARNING" enabled_by_default="false" />
|
<inspection_tool class="BooleanMethodIsAlwaysInverted" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
|
<inspection_tool class="CanBeFinal" enabled="false" level="WARNING" enabled_by_default="false">
|
||||||
|
<option name="REPORT_CLASSES" value="false" />
|
||||||
|
<option name="REPORT_METHODS" value="false" />
|
||||||
|
<option name="REPORT_FIELDS" value="true" />
|
||||||
|
</inspection_tool>
|
||||||
<inspection_tool class="DuplicateExpressions" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
<inspection_tool class="DuplicateExpressions" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||||
<inspection_tool class="InnerClassMayBeStatic" enabled="false" level="WARNING" enabled_by_default="false" />
|
<inspection_tool class="InnerClassMayBeStatic" enabled="false" level="WARNING" enabled_by_default="false" />
|
||||||
</profile>
|
</profile>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="11" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/Shitter.iml" filepath="$PROJECT_DIR$/.idea/Shitter.iml" group="Shitter" />
|
<module fileurl="file://$PROJECT_DIR$/.idea/Shitter.iml" filepath="$PROJECT_DIR$/.idea/Shitter.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" group="Shitter/app" />
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/Shitter.app.iml" filepath="$PROJECT_DIR$/.idea/modules/app/Shitter.app.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -8,8 +8,8 @@ android {
|
|||||||
applicationId 'org.nuclearfog.twidda'
|
applicationId 'org.nuclearfog.twidda'
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 22
|
versionCode 23
|
||||||
versionName '1.7.14'
|
versionName '1.7.15'
|
||||||
vectorDrawables.useSupportLibrary true
|
vectorDrawables.useSupportLibrary true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ import org.nuclearfog.twidda.backend.LocationListLoader;
|
|||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.engine.TwitterEngine;
|
import org.nuclearfog.twidda.backend.engine.TwitterEngine;
|
||||||
import org.nuclearfog.twidda.backend.items.TrendLocation;
|
import org.nuclearfog.twidda.backend.items.TrendLocation;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.DatabaseAdapter;
|
import org.nuclearfog.twidda.database.DatabaseAdapter;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import androidx.viewpager.widget.ViewPager;
|
|||||||
|
|
||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@ import com.google.android.material.tabs.TabLayout.Tab;
|
|||||||
|
|
||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,8 +22,8 @@ import androidx.appcompat.widget.Toolbar;
|
|||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.backend.Registration;
|
import org.nuclearfog.twidda.backend.Registration;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
|
@ -28,7 +28,7 @@ import org.nuclearfog.twidda.backend.ImageLoader;
|
|||||||
import org.nuclearfog.twidda.backend.ImageSaver;
|
import org.nuclearfog.twidda.backend.ImageSaver;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.holder.ImageHolder;
|
import org.nuclearfog.twidda.backend.holder.ImageHolder;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.zoomview.ZoomView;
|
import org.nuclearfog.zoomview.ZoomView;
|
||||||
|
|
||||||
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
||||||
|
@ -24,8 +24,8 @@ import org.nuclearfog.twidda.R;
|
|||||||
import org.nuclearfog.twidda.backend.MessageUploader;
|
import org.nuclearfog.twidda.backend.MessageUploader;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.holder.MessageHolder;
|
import org.nuclearfog.twidda.backend.holder.MessageHolder;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
|
import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
|
||||||
|
@ -34,8 +34,8 @@ import org.nuclearfog.twidda.backend.ProfileUpdater;
|
|||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.holder.UserHolder;
|
import org.nuclearfog.twidda.backend.holder.UserHolder;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
|
import static android.Manifest.permission.READ_EXTERNAL_STORAGE;
|
||||||
|
@ -35,8 +35,8 @@ import org.nuclearfog.twidda.backend.TweetLoader;
|
|||||||
import org.nuclearfog.twidda.backend.TweetLoader.Action;
|
import org.nuclearfog.twidda.backend.TweetLoader.Action;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.items.Tweet;
|
import org.nuclearfog.twidda.backend.items.Tweet;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.text.NumberFormat;
|
import java.text.NumberFormat;
|
||||||
|
@ -28,8 +28,8 @@ import org.nuclearfog.twidda.R;
|
|||||||
import org.nuclearfog.twidda.backend.TweetUploader;
|
import org.nuclearfog.twidda.backend.TweetUploader;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.holder.TweetHolder;
|
import org.nuclearfog.twidda.backend.holder.TweetHolder;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
@ -10,7 +10,7 @@ import androidx.viewpager.widget.ViewPager;
|
|||||||
|
|
||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,7 +10,7 @@ import androidx.viewpager.widget.ViewPager;
|
|||||||
|
|
||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
import org.nuclearfog.twidda.adapter.FragmentAdapter;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,8 +37,8 @@ import org.nuclearfog.twidda.backend.ProfileLoader;
|
|||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.items.UserRelation;
|
import org.nuclearfog.twidda.backend.items.UserRelation;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.text.NumberFormat;
|
import java.text.NumberFormat;
|
||||||
|
@ -18,7 +18,7 @@ import com.squareup.picasso.Picasso;
|
|||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterList;
|
import org.nuclearfog.twidda.backend.items.TwitterList;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.text.NumberFormat;
|
import java.text.NumberFormat;
|
||||||
@ -28,7 +28,7 @@ import java.util.List;
|
|||||||
import static android.view.View.GONE;
|
import static android.view.View.GONE;
|
||||||
import static android.view.View.VISIBLE;
|
import static android.view.View.VISIBLE;
|
||||||
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
||||||
import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString;
|
import static org.nuclearfog.twidda.backend.utils.TimeString.getTimeString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter class for user lists
|
* Adapter class for user lists
|
||||||
@ -37,11 +37,11 @@ import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString;
|
|||||||
*/
|
*/
|
||||||
public class ListAdapter extends Adapter<ListAdapter.ListHolder> {
|
public class ListAdapter extends Adapter<ListAdapter.ListHolder> {
|
||||||
|
|
||||||
private ListClickListener listener;
|
private final ListClickListener listener;
|
||||||
private NumberFormat formatter;
|
private final NumberFormat formatter;
|
||||||
private GlobalSettings settings;
|
private final GlobalSettings settings;
|
||||||
|
|
||||||
private List<TwitterList> data;
|
private final List<TwitterList> data;
|
||||||
|
|
||||||
|
|
||||||
public ListAdapter(ListClickListener listener, GlobalSettings settings) {
|
public ListAdapter(ListClickListener listener, GlobalSettings settings) {
|
||||||
|
@ -22,14 +22,14 @@ import org.nuclearfog.tag.Tagger.OnTagClickListener;
|
|||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.backend.items.Message;
|
import org.nuclearfog.twidda.backend.items.Message;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
||||||
import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString;
|
import static org.nuclearfog.twidda.backend.utils.TimeString.getTimeString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter class for direct messages list
|
* Adapter class for direct messages list
|
||||||
@ -38,10 +38,10 @@ import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString;
|
|||||||
*/
|
*/
|
||||||
public class MessageAdapter extends Adapter<MessageAdapter.MessageHolder> {
|
public class MessageAdapter extends Adapter<MessageAdapter.MessageHolder> {
|
||||||
|
|
||||||
private OnItemSelected itemClickListener;
|
private final OnItemSelected itemClickListener;
|
||||||
private GlobalSettings settings;
|
private final GlobalSettings settings;
|
||||||
|
|
||||||
private List<Message> messages;
|
private final List<Message> messages;
|
||||||
|
|
||||||
|
|
||||||
public MessageAdapter(OnItemSelected itemClickListener, GlobalSettings settings) {
|
public MessageAdapter(OnItemSelected itemClickListener, GlobalSettings settings) {
|
||||||
|
@ -14,7 +14,7 @@ import androidx.recyclerview.widget.RecyclerView.ViewHolder;
|
|||||||
|
|
||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterTrend;
|
import org.nuclearfog.twidda.backend.items.TwitterTrend;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.text.NumberFormat;
|
import java.text.NumberFormat;
|
||||||
@ -32,11 +32,11 @@ import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
|||||||
*/
|
*/
|
||||||
public class TrendAdapter extends Adapter<TrendAdapter.ItemHolder> {
|
public class TrendAdapter extends Adapter<TrendAdapter.ItemHolder> {
|
||||||
|
|
||||||
private TrendClickListener itemClickListener;
|
private final TrendClickListener itemClickListener;
|
||||||
private GlobalSettings settings;
|
private final GlobalSettings settings;
|
||||||
private NumberFormat formatter;
|
private final NumberFormat formatter;
|
||||||
|
|
||||||
private List<TwitterTrend> trends;
|
private final List<TwitterTrend> trends;
|
||||||
|
|
||||||
|
|
||||||
public TrendAdapter(TrendClickListener itemClickListener, GlobalSettings settings) {
|
public TrendAdapter(TrendClickListener itemClickListener, GlobalSettings settings) {
|
||||||
|
@ -22,7 +22,7 @@ import org.nuclearfog.tag.Tagger;
|
|||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.backend.items.Tweet;
|
import org.nuclearfog.twidda.backend.items.Tweet;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.text.NumberFormat;
|
import java.text.NumberFormat;
|
||||||
@ -33,7 +33,7 @@ import static android.view.View.INVISIBLE;
|
|||||||
import static android.view.View.VISIBLE;
|
import static android.view.View.VISIBLE;
|
||||||
import static androidx.recyclerview.widget.RecyclerView.NO_ID;
|
import static androidx.recyclerview.widget.RecyclerView.NO_ID;
|
||||||
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
import static androidx.recyclerview.widget.RecyclerView.NO_POSITION;
|
||||||
import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString;
|
import static org.nuclearfog.twidda.backend.utils.TimeString.getTimeString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapter class for tweet list
|
* Adapter class for tweet list
|
||||||
@ -47,12 +47,12 @@ public class TweetAdapter extends Adapter<ViewHolder> {
|
|||||||
private static final int VIEW_GAP = 1;
|
private static final int VIEW_GAP = 1;
|
||||||
private static final int MIN_COUNT = 2;
|
private static final int MIN_COUNT = 2;
|
||||||
|
|
||||||
private TweetClickListener itemClickListener;
|
private final TweetClickListener itemClickListener;
|
||||||
private NumberFormat formatter;
|
private final NumberFormat formatter;
|
||||||
private GlobalSettings settings;
|
private final GlobalSettings settings;
|
||||||
private int loadingIndex;
|
private int loadingIndex;
|
||||||
|
|
||||||
private List<Tweet> tweets;
|
private final List<Tweet> tweets;
|
||||||
|
|
||||||
|
|
||||||
public TweetAdapter(TweetClickListener itemClickListener, GlobalSettings settings) {
|
public TweetAdapter(TweetClickListener itemClickListener, GlobalSettings settings) {
|
||||||
|
@ -20,7 +20,7 @@ import com.squareup.picasso.Picasso;
|
|||||||
import org.nuclearfog.twidda.R;
|
import org.nuclearfog.twidda.R;
|
||||||
import org.nuclearfog.twidda.backend.holder.UserListHolder;
|
import org.nuclearfog.twidda.backend.holder.UserListHolder;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.tools.FontTool;
|
import org.nuclearfog.twidda.backend.utils.FontTool;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -42,10 +42,10 @@ public class UserAdapter extends Adapter<ViewHolder> {
|
|||||||
private static final int ITEM_USER = 0;
|
private static final int ITEM_USER = 0;
|
||||||
private static final int ITEM_GAP = 1;
|
private static final int ITEM_GAP = 1;
|
||||||
|
|
||||||
private UserClickListener itemClickListener;
|
private final UserClickListener itemClickListener;
|
||||||
private GlobalSettings settings;
|
private final GlobalSettings settings;
|
||||||
|
|
||||||
private List<TwitterUser> users;
|
private final List<TwitterUser> users;
|
||||||
private long nextCursor;
|
private long nextCursor;
|
||||||
private int loadingIndex;
|
private int loadingIndex;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package org.nuclearfog.twidda.backend.tools;
|
package org.nuclearfog.twidda.backend.utils;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
@ -1,4 +1,4 @@
|
|||||||
package org.nuclearfog.twidda.backend.tools;
|
package org.nuclearfog.twidda.backend.utils;
|
||||||
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
@ -1,4 +1,4 @@
|
|||||||
package org.nuclearfog.twidda.backend.tools;
|
package org.nuclearfog.twidda.backend.utils;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
@ -26,7 +26,7 @@ import org.nuclearfog.twidda.adapter.ListAdapter.ListClickListener;
|
|||||||
import org.nuclearfog.twidda.backend.TwitterListLoader;
|
import org.nuclearfog.twidda.backend.TwitterListLoader;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterList;
|
import org.nuclearfog.twidda.backend.items.TwitterList;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -30,7 +30,7 @@ import org.nuclearfog.twidda.backend.MessageListLoader;
|
|||||||
import org.nuclearfog.twidda.backend.TrendListLoader;
|
import org.nuclearfog.twidda.backend.TrendListLoader;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.items.Message;
|
import org.nuclearfog.twidda.backend.items.Message;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -22,7 +22,7 @@ import org.nuclearfog.twidda.adapter.TrendAdapter.TrendClickListener;
|
|||||||
import org.nuclearfog.twidda.backend.TrendListLoader;
|
import org.nuclearfog.twidda.backend.TrendListLoader;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterTrend;
|
import org.nuclearfog.twidda.backend.items.TwitterTrend;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -23,7 +23,7 @@ import org.nuclearfog.twidda.backend.TweetListLoader;
|
|||||||
import org.nuclearfog.twidda.backend.TweetListLoader.Action;
|
import org.nuclearfog.twidda.backend.TweetListLoader.Action;
|
||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.items.Tweet;
|
import org.nuclearfog.twidda.backend.items.Tweet;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -24,7 +24,7 @@ import org.nuclearfog.twidda.backend.UserListLoader.Action;
|
|||||||
import org.nuclearfog.twidda.backend.engine.EngineException;
|
import org.nuclearfog.twidda.backend.engine.EngineException;
|
||||||
import org.nuclearfog.twidda.backend.holder.UserListHolder;
|
import org.nuclearfog.twidda.backend.holder.UserListHolder;
|
||||||
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
import org.nuclearfog.twidda.backend.items.TwitterUser;
|
||||||
import org.nuclearfog.twidda.backend.tools.ErrorHandler;
|
import org.nuclearfog.twidda.backend.utils.ErrorHandler;
|
||||||
import org.nuclearfog.twidda.database.GlobalSettings;
|
import org.nuclearfog.twidda.database.GlobalSettings;
|
||||||
|
|
||||||
import static android.os.AsyncTask.Status.FINISHED;
|
import static android.os.AsyncTask.Status.FINISHED;
|
||||||
|
@ -1,265 +1,273 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/tweet_layout"
|
android:id="@+id/tweet_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
android:fitsSystemWindows="true">
|
android:fitsSystemWindows="true">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<androidx.appcompat.widget.Toolbar
|
||||||
|
android:id="@+id/tweet_toolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/tweet_toolbar_height" />
|
||||||
android:background="@android:color/transparent">
|
|
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
android:background="@android:color/transparent">
|
||||||
|
|
||||||
<LinearLayout
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical">
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar
|
|
||||||
android:id="@+id/tweet_toolbar"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/tweet_toolbar_height" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/tweet_head"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical">
|
||||||
android:paddingLeft="@dimen/tweet_layout_margin"
|
|
||||||
android:paddingRight="@dimen/tweet_layout_margin"
|
|
||||||
android:visibility="invisible">
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/tweet_head"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal">
|
android:orientation="vertical"
|
||||||
|
android:paddingLeft="@dimen/tweet_layout_margin"
|
||||||
<androidx.cardview.widget.CardView
|
android:paddingRight="@dimen/tweet_layout_margin"
|
||||||
android:layout_width="@dimen/tweet_profile"
|
android:visibility="invisible">
|
||||||
android:layout_height="@dimen/tweet_profile">
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/profileimage_detail"
|
|
||||||
android:layout_width="@dimen/tweet_profile"
|
|
||||||
android:layout_height="@dimen/tweet_profile"
|
|
||||||
android:contentDescription="@string/profile_image" />
|
|
||||||
|
|
||||||
</androidx.cardview.widget.CardView>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="@dimen/tweet_layout_margin"
|
android:orientation="horizontal">
|
||||||
android:layout_marginLeft="@dimen/tweet_layout_margin"
|
|
||||||
android:layout_marginBottom="@dimen/tweet_layout_margin"
|
|
||||||
android:gravity="center"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<TextView
|
<androidx.cardview.widget.CardView
|
||||||
android:id="@+id/usernamedetail"
|
android:layout_width="@dimen/tweet_profile"
|
||||||
|
android:layout_height="@dimen/tweet_profile">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/profileimage_detail"
|
||||||
|
android:layout_width="@dimen/tweet_profile"
|
||||||
|
android:layout_height="@dimen/tweet_profile"
|
||||||
|
android:contentDescription="@string/profile_image" />
|
||||||
|
|
||||||
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
android:layout_marginStart="@dimen/tweet_layout_margin"
|
||||||
android:singleLine="true" />
|
android:layout_marginLeft="@dimen/tweet_layout_margin"
|
||||||
|
android:layout_marginBottom="@dimen/tweet_layout_margin"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/scrnamedetail"
|
android:id="@+id/usernamedetail"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
android:singleLine="true" />
|
android:singleLine="true" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/timedetail"
|
android:id="@+id/scrnamedetail"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
android:textSize="@dimen/tweet_textsize_date" />
|
android:singleLine="true" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/timedetail"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textSize="@dimen/tweet_textsize_date" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/answer_reference_detail"
|
|
||||||
style="@style/Widget.AppCompat.Button.Borderless"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="@dimen/tweet_button_answer_height"
|
|
||||||
android:background="@drawable/button"
|
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textSize="@dimen/tweet_textsize_api"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tweet_detailed"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="@dimen/tweet_layout_margin"
|
|
||||||
android:layout_marginBottom="@dimen/tweet_layout_margin"
|
|
||||||
android:fadeScrollbars="false"
|
|
||||||
android:linksClickable="true"
|
|
||||||
android:maxLines="@integer/tweet_test_max_lines"
|
|
||||||
android:scrollbars="vertical"
|
|
||||||
android:textSize="@dimen/tweet_textsize"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/tweet_media_attach"
|
|
||||||
android:layout_width="@dimen/tweet_button_media_width"
|
|
||||||
android:layout_height="@dimen/tweet_button_media_height"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_margin="@dimen/tweet_media_button_margin"
|
|
||||||
android:background="@drawable/button"
|
|
||||||
android:contentDescription="@string/image_preview_button"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tweet_sensitive"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/tweet_sensitive_media"
|
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
|
||||||
app:drawableLeftCompat="@drawable/sensitive"
|
|
||||||
app:drawableStartCompat="@drawable/sensitive"
|
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
|
||||||
android:textSize="@dimen/tweet_textsize_api"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tweet_location_name"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textSize="@dimen/tweet_textsize_locale"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:drawableLeftCompat="@drawable/userlocation"
|
|
||||||
app:drawableStartCompat="@drawable/userlocation" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/tweet_location_coordinate"
|
android:id="@+id/answer_reference_detail"
|
||||||
style="@style/Widget.AppCompat.Button.Borderless"
|
style="@style/Widget.AppCompat.Button.Borderless"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/tweet_button_location"
|
android:layout_height="@dimen/tweet_button_answer_height"
|
||||||
android:layout_marginLeft="@dimen/tweet_button_margin"
|
|
||||||
android:layout_marginRight="@dimen/tweet_button_margin"
|
|
||||||
android:background="@drawable/button"
|
android:background="@drawable/button"
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textSize="@dimen/tweet_textsize_locale"
|
android:textSize="@dimen/tweet_textsize_api"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tweet_detailed"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/tweet_layout_margin"
|
||||||
|
android:layout_marginBottom="@dimen/tweet_layout_margin"
|
||||||
|
android:fadeScrollbars="false"
|
||||||
|
android:linksClickable="true"
|
||||||
|
android:maxLines="@integer/tweet_test_max_lines"
|
||||||
|
android:scrollbars="vertical"
|
||||||
|
android:textSize="@dimen/tweet_textsize"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/tweet_media_attach"
|
||||||
|
android:layout_width="@dimen/tweet_button_media_width"
|
||||||
|
android:layout_height="@dimen/tweet_button_media_height"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_margin="@dimen/tweet_media_button_margin"
|
||||||
|
android:background="@drawable/button"
|
||||||
|
android:contentDescription="@string/image_preview_button"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tweet_sensitive"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="@string/tweet_sensitive_media"
|
||||||
|
android:textSize="@dimen/tweet_textsize_api"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:drawableLeftCompat="@drawable/sensitive"
|
||||||
|
app:drawableStartCompat="@drawable/sensitive" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tweet_location_name"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textSize="@dimen/tweet_textsize_locale"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:drawableLeftCompat="@drawable/userlocation"
|
||||||
|
app:drawableStartCompat="@drawable/userlocation" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/tweet_location_coordinate"
|
||||||
|
style="@style/Widget.AppCompat.Button.Borderless"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="@dimen/tweet_button_location"
|
||||||
|
android:layout_marginLeft="@dimen/tweet_button_margin"
|
||||||
|
android:layout_marginRight="@dimen/tweet_button_margin"
|
||||||
|
android:background="@drawable/button"
|
||||||
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textSize="@dimen/tweet_textsize_locale"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/used_api"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:linksClickable="false"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textSize="@dimen/tweet_textsize_api" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<TextView
|
</LinearLayout>
|
||||||
android:id="@+id/used_api"
|
|
||||||
android:layout_width="match_parent"
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:linksClickable="false"
|
</com.google.android.material.appbar.AppBarLayout>
|
||||||
|
|
||||||
|
<androidx.core.widget.NestedScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:fillViewport="true"
|
||||||
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/tweet_foot"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:addStatesFromChildren="false"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:padding="@dimen/tweet_layout_padding"
|
||||||
|
android:visibility="invisible">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/tweet_answer"
|
||||||
|
style="@style/Widget.AppCompat.Button.Borderless"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/tweet_button_height"
|
||||||
|
android:layout_marginLeft="@dimen/tweet_button_margin"
|
||||||
|
android:layout_marginRight="@dimen/tweet_button_margin"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/button"
|
||||||
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textSize="@dimen/tweet_textsize_api" />
|
app:drawableLeftCompat="@drawable/answer"
|
||||||
|
app:drawableStartCompat="@drawable/answer" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/tweet_retweet"
|
||||||
|
style="@style/Widget.AppCompat.Button.Borderless"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/tweet_button_height"
|
||||||
|
android:layout_marginLeft="@dimen/tweet_button_margin"
|
||||||
|
android:layout_marginRight="@dimen/tweet_button_margin"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/button"
|
||||||
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
|
android:singleLine="true"
|
||||||
|
app:drawableLeftCompat="@drawable/retweet"
|
||||||
|
app:drawableStartCompat="@drawable/retweet" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/tweet_favorit"
|
||||||
|
style="@style/Widget.AppCompat.Button.Borderless"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/tweet_button_height"
|
||||||
|
android:layout_marginLeft="@dimen/tweet_button_margin"
|
||||||
|
android:layout_marginRight="@dimen/tweet_button_margin"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="@drawable/button"
|
||||||
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
|
android:singleLine="true"
|
||||||
|
app:drawableLeftCompat="@drawable/favorite"
|
||||||
|
app:drawableStartCompat="@drawable/favorite" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
<androidx.viewpager.widget.ViewPager
|
||||||
|
android:id="@+id/tweet_pager"
|
||||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent" />
|
||||||
</com.google.android.material.appbar.AppBarLayout>
|
|
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:fillViewport="true"
|
|
||||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/tweet_foot"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:addStatesFromChildren="false"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:padding="@dimen/tweet_layout_padding"
|
|
||||||
android:visibility="invisible">
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/tweet_answer"
|
|
||||||
style="@style/Widget.AppCompat.Button.Borderless"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="@dimen/tweet_button_height"
|
|
||||||
android:layout_marginLeft="@dimen/tweet_button_margin"
|
|
||||||
android:layout_marginRight="@dimen/tweet_button_margin"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@drawable/button"
|
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
|
||||||
android:singleLine="true"
|
|
||||||
app:drawableLeftCompat="@drawable/answer"
|
|
||||||
app:drawableStartCompat="@drawable/answer" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/tweet_retweet"
|
|
||||||
style="@style/Widget.AppCompat.Button.Borderless"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="@dimen/tweet_button_height"
|
|
||||||
android:layout_marginLeft="@dimen/tweet_button_margin"
|
|
||||||
android:layout_marginRight="@dimen/tweet_button_margin"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@drawable/button"
|
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
|
||||||
android:singleLine="true"
|
|
||||||
app:drawableLeftCompat="@drawable/retweet"
|
|
||||||
app:drawableStartCompat="@drawable/retweet" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/tweet_favorit"
|
|
||||||
style="@style/Widget.AppCompat.Button.Borderless"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="@dimen/tweet_button_height"
|
|
||||||
android:layout_marginLeft="@dimen/tweet_button_margin"
|
|
||||||
android:layout_marginRight="@dimen/tweet_button_margin"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:background="@drawable/button"
|
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
|
||||||
android:singleLine="true"
|
|
||||||
app:drawableLeftCompat="@drawable/favorite"
|
|
||||||
app:drawableStartCompat="@drawable/favorite" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<androidx.viewpager.widget.ViewPager
|
</androidx.core.widget.NestedScrollView>
|
||||||
android:id="@+id/tweet_pager"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|
||||||
</androidx.core.widget.NestedScrollView>
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@ -1,8 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
|
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
|
||||||
<item name="colorAccent">@android:color/white</item>
|
<item name="colorAccent">@android:color/white</item>
|
||||||
<item name="android:colorBackground">@android:color/black</item>
|
<item name="android:colorBackground">@android:color/black</item>
|
||||||
|
<item name="android:navigationBarColor">@android:color/black</item>
|
||||||
<item name="android:windowAnimationStyle">@style/TransactionPending</item>
|
<item name="android:windowAnimationStyle">@style/TransactionPending</item>
|
||||||
<item name="android:windowTranslucentStatus">true</item>
|
<item name="android:windowTranslucentStatus">true</item>
|
||||||
<item name="android:textAllCaps">false</item>
|
<item name="android:textAllCaps">false</item>
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
<color name="dark_transparent">#af000000</color>
|
||||||
<color name="half_transparent">#40000000</color>
|
<color name="half_transparent">#40000000</color>
|
||||||
<color name="bright_transparent">#afffffff</color>
|
<color name="bright_transparent">#afffffff</color>
|
||||||
</resources>
|
</resources>
|
@ -6,7 +6,7 @@ buildscript {
|
|||||||
google()
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
|||||||
#Tue Jun 02 12:22:03 CEST 2020
|
#Tue Oct 13 13:09:08 CEST 2020
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user