Answer the question
In order to leave comments, you need to log in
To make the correct request to the game server (I am writing a bot)?
Good day to all. I was puzzled by the question of writing a bot for the game (for the most part, because I have free time, I want to do something)
I downloaded Fiddler, I track requests. I was able to log in, get profile information, although not without torment, after all, this is my first experience.
Stopped on such a problem. Take some action.
The request code that I caught:
Answer the question
In order to leave comments, you need to log in
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="#D4D7DC"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="30dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="dark"
android:layout_marginTop="20dp"
android:layout_marginLeft="10dp"
android:layout_marginBottom="20dp"
android:text="Какой-то текст..."
android:textSize="17dp"/>
</android.support.v7.widget.CardView>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="250dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:weightSum="100">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:layout_marginBottom="-6dp"
android:layout_marginTop="-6dp"
android:src="@drawable/Desert" />
</LinearLayout>
<android.support.v7.widget.CardView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="dark"
android:layout_marginTop="20dp"
android:layout_marginLeft="10dp"
android:layout_marginBottom="20dp"
android:text="Какой-то Другой текст..."
android:textSize="17dp"/>
</android.support.v7.widget.CardView>
</LinearLayout>
Look in the direction of android:scaleType, there seemed to be something like that
you should be like this
<android.support.v7.widget.CardView
<LinearLayout>
<TextView/>
<ImageView/>
<TextView/>
</LinearLayout>
</android.support.v7.widget.CardView>
The solution with two CardViews proposed above had to be abandoned, because. in my opinion, this contradicts the very concept of CardView ("one card - one CardView"). Therefore, I replaced them with RelativeLayout and set the indents like this:
<LinearLayout>
<RelativeLayout
...
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp">
<TextView />
<TextView />
</RelativeLayout>
<ImageView />
<RelativeLayout
...
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp">
<TextView />
<TextView />
</RelativeLayout>
</LinearLayout>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:elevation="2dp"
android:background="@drawable/image_bg"/>
<!-- res/drawable/image_bg.xml -->
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="2dip" android:color="#4e4e4e" />
</shape>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question